package com.example.homework2.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class IndexController {
    @RequestMapping({"/", "/toIndex"})
    public String toIndex(Model model) {
        model.addAttribute("message", "Hello,how are you doing?");
        return "index";
    }
}